PowerTCP SSH and SFTP for .NET
Licensing in COM Environments



PowerTCP SSH and SFTP for .NET exposes an interface that can be used in COM environments, including VB6. The licensing model for COM now works similar to .NET Standard licensing.

 

First, ensure a license is activated (see License Activation).

 

  1. With an activated license present, run your application so that a licensed component’s constructor is called (or call ComLicense.Create when your application starts).
  2. The runtime license is created and saved to Dart.Ssh.lic beside Dart.Ssh.dll in the application's directory. The runtime license is bound to the application’s assembly name and should be distributed with your application.
  3. If ComLicense.Create was used, remove it from your code.
  4. If distributing Dart.Ssh.lic is undesirable (when using a build server, for example, or to minimize the size of your distribution), then a runtime license string can be used instead:
    1. Use any text editor to open the Dart.Ssh.lic file located in the output directory.
    2. Copy the runtime license string from the first line.
    3. In your application's code, paste the runtime license string in between the quotes of License.Set, as follows:
       ComLicense.Set("RuntimeLicenseString");

Deployment

The process for deployment for use under COM is as follows:

  1. Deploy your compiled project as appropriate for your environment.
  2. If ComLicense.Set is not used, deploy the Dart.Ssh.lic runtime license file alongside your application's executable.
  3. Deploy the Dart.Ssh.dll to the target machine. Use the Microsoft regasm.exe utility to COM register the assembly. For example:

    regasm Dart.Ssh.dll /codebase /tlb

This process is only necessary when employing the COM interface to a Dart component. .NET applications should use the native .NET class interface, which embeds the licensing resource in the application, as described on the "Licensing and Trial Operation" page.

See Also

PowerTCP SSH and SFTP for .NET Documentation Version 7.0
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic